package com.viknix.micrometer.demo.controller;

import com.viknix.common.result.ResultModel;
import com.viknix.micrometer.demo.service.MicrometerService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Dongqi
 * @Date: 2021/11/18 18:36
 * @Version 1.0
 * @Description:
 */
@AllArgsConstructor
@RequestMapping("/micrometer")
@RestController
public class MicrometerController {

    private MicrometerService micrometerService;

    @GetMapping
    public ResultModel success() {
        micrometerService.timer();
        return ResultModel.success();
    }
}
